package com.ruoyi.book.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 【请填写功能名称】对象 borrow_info
 * 
 * @author wcm
 * @date 2022-03-31
 */
public class BorrowInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 读者id */
    @Excel(name = "读者id")
    private String readerId;

    /** 图书id */
    @Excel(name = "图书id")
    private String bookId;



    /** 借阅开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借阅开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowStartTime;

    /** 借阅结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借阅结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowEndTime;

    /** 状态(1归还  2续借 3未归还  4超期) */
    @Excel(name = "状态(1归还  2续借 3未归还  4超期)")
    private String state;

    /** 应付金额 */
    @Excel(name = "应付金额")
    private Long money;

    /** 删除标志 */
    private String delFlag;

    private Integer dayNum;


    private Integer rent;

    private String qurtyType;

    public String getQurtyType() {
        return qurtyType;
    }

    public void setQurtyType(String qurtyType) {
        this.qurtyType = qurtyType;
    }

    public Integer getRent() {
        return rent;
    }

    public void setRent(Integer rent) {
        this.rent = rent;
    }

    /** 归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    private  Integer overdueDays;

    private Integer overdueAmount;

    private String readerName;

    private String bookName;

    private ReaderInfo readerInfo;

    private BookInfo bookInfo;

    public ReaderInfo getReaderInfo() {
        return readerInfo;
    }

    public void setReaderInfo(ReaderInfo readerInfo) {
        this.readerInfo = readerInfo;
    }

    public BookInfo getBookInfo() {
        return bookInfo;
    }

    public void setBookInfo(BookInfo bookInfo) {
        this.bookInfo = bookInfo;
    }

    public Integer getDayNum() {
        return dayNum;
    }

    public void setDayNum(Integer dayNum) {
        this.dayNum = dayNum;
    }

    public String getReaderName() {
        return readerName;
    }

    public void setReaderName(String readerName) {
        this.readerName = readerName;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public Integer getOverdueDays() {
        return overdueDays;
    }

    public void setOverdueDays(Integer overdueDays) {
        this.overdueDays = overdueDays;
    }

    public Integer getOverdueAmount() {
        return overdueAmount;
    }

    public void setOverdueAmount(Integer overdueAmount) {
        this.overdueAmount = overdueAmount;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setReaderId(String readerId)
    {
        this.readerId = readerId;
    }

    public String getReaderId()
    {
        return readerId;
    }
    public void setBookId(String bookId)
    {
        this.bookId = bookId;
    }

    public String getBookId()
    {
        return bookId;
    }
    public void setBorrowStartTime(Date borrowStartTime) 
    {
        this.borrowStartTime = borrowStartTime;
    }

    public Date getBorrowStartTime() 
    {
        return borrowStartTime;
    }
    public void setBorrowEndTime(Date borrowEndTime) 
    {
        this.borrowEndTime = borrowEndTime;
    }

    public Date getBorrowEndTime() 
    {
        return borrowEndTime;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setMoney(Long money) 
    {
        this.money = money;
    }

    public Long getMoney() 
    {
        return money;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setReturnTime(Date returnTime) 
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime() 
    {
        return returnTime;
    }


    @Override
    public String toString() {
        return "BorrowInfo{" +
                "id='" + id + '\'' +
                ", readerId='" + readerId + '\'' +
                ", bookId='" + bookId + '\'' +
                ", borrowStartTime=" + borrowStartTime +
                ", borrowEndTime=" + borrowEndTime +
                ", state='" + state + '\'' +
                ", money=" + money +
                ", delFlag='" + delFlag + '\'' +
                ", returnTime=" + returnTime +
                ", overdueDays=" + overdueDays +
                ", overdueAmount=" + overdueAmount +
                '}';
    }
}
